//
//  DownloadManager.h
//  DownloadDemo
//
//  Created by lanou3g on 16/4/27.
//  Copyright © 2016年 鸥！陈凯. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MusicDownloadTask.h"
#import "JaneRadioListModel.h"
typedef void(^ProgressBlock)(float progress);
typedef void(^CompleteBlock)(NSString *path);
@interface DownloadManager : NSObject
@property (nonatomic,strong)NSMutableArray *array;
- (void)addDownloadTask:(JaneRadioListModel *)model progressBlock:(ProgressBlock)proBlock complete:(CompleteBlock)comBlock;
+ (instancetype)shareManager;
// 当前下载任务个数
- (NSInteger)count;
//取值
- (NSString *)getTitleWithIndex:(NSInteger)index;
- (void)setProgressBlock:(ProgressBlock)proBlock CompleteBlock:(CompleteBlock)comBlock Index:(NSInteger)index;

@end
